<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组分隔</title>
    <script>
        var arr = new Array('aa', 'bb', 'cc', 'ee')
        var result = arr[0]
        for (var i = 1; i < arr.length; i++) {
            result += '|' + arr[i]
        }
        console.log(result)
    </script>
</head>

<body>

</body>

</html>